home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-serious-
/
wb
/
merlin
/
rexx
/
celsiustofahrenheit.rexx
next >
Wrap
OS/2 REXX Batch file
|
1999-07-12
|
784b
|
42 lines
/* RUN "rx MCP:rexx/CelsiusToFahrenheit.rexx %n" */
Arg node_number /* node we were run from */
Host = 'MCPREXX.'node_number /* the Trion MCP Arexx port */
Options results
Address value host
options failat 15
/* say "node: "node_number */
if node_number = "" then do
say "error .. rexx script not started with %n on command line"
exit 1
end
ReadString "ID 14"
Celsius = result
if Celsius < -273 then do
Celsius = -273
WriteString "14" Celsius
end
/* say "Celsius:" Celsius */
Fahrenheit = (Celsius * (9/5)) + 32
/* say "Fahrenheit:" Fahrenheit */
/* WriteString '13, Fahrenheit' */
WriteString "13" Fahrenheit
exit 0 /* einde programma */
test: /* een functie: 'call test' */
return 0